package com.baizhi.controller;

import com.baizhi.annotation.LogAnnotation;
import com.baizhi.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Controller
@RestController
@RequestMapping("/role")
public class RoleController {
    @Autowired
    private RoleService roleService;

    @RequestMapping("/selectAllRole")
    @LogAnnotation(value = "查询全部角色",type = "select")
    public Map selectAllRole(int page,int limit){
        return  roleService.selectAllRole(page,limit);
    }
}
